import type { DefineDateTimeFormat } from 'vue-i18n';

export const dateFormatZh: DefineDateTimeFormat = {
	y: {
		year: 'numeric',
	},
	ym: {
		year: 'numeric',
		month: '2-digit',
	},
	ymd: {
		year: 'numeric',
		month: '2-digit',
		day: '2-digit',
	},
	ymdhm: {
		year: 'numeric',
		month: '2-digit',
		day: '2-digit',
		hour: '2-digit',
		minute: '2-digit',
		hour12: false,
	},
	ymdhms: {
		year: 'numeric',
		month: '2-digit',
		day: '2-digit',
		hour: '2-digit',
		minute: '2-digit',
		second: '2-digit',
		hour12: false,
	},
};

export const dateFormatOther: DefineDateTimeFormat = {
	y: {
		year: 'numeric',
	},
	ym: {
		year: 'numeric',
		month: 'short',
	},
	ymd: {
		year: 'numeric',
		month: 'short',
		day: 'numeric',
	},
	ymdhm: {
		year: 'numeric',
		month: 'short',
		day: 'numeric',
		hour: '2-digit',
		minute: '2-digit',
		hour12: true,
	},
	ymdhms: {
		year: 'numeric',
		month: 'short',
		day: 'numeric',
		hour: '2-digit',
		minute: '2-digit',
		second: '2-digit',
		hour12: true,
	},
};
